﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSunny.Admin.Controls
{
    public partial class ViewOrder : System.Web.UI.UserControl
    {
        public string id="";
       
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["idorder"] != null)
            {
                id = Request.QueryString["idorder"];
                string sql = "select * from tbl_ThietKeWebsite , tbl_OrderLine where Orders_ID = '"+id+"' AND tbl_ThietKeWebsite.ThietKeWebsite_ID = tbl_OrderLine.ThietKeWebsite_ID";
                System.Data.DataTable dt = DAL.DCollector.DBCollector.Instance.CallSQL1Param( sql,true);
                rpt_order.DataSource = dt;
                rpt_order.DataBind();


            }

        }
    }
}